<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../layui/css/layui.css"/>
		<link rel="stylesheet" type="text/css" href="../font-awesome-4.7.0/css/font-awesome.min.css"/>
		<style type="text/css">
			#addUserModel{
				padding: 10px;
				display: none;
			}
		</style>
	</head>
	<body>
			<div class="layui-btn-group">
				<button class="layui-btn" onclick="getCheckItem()">获取选中项</button>
				<button class="layui-btn layui-btn-normal" onclick="showAddModel()"><i class="fa fa-plus"></i> 添加</button>
				<button class="layui-btn layui-btn-warm" onclick="showEditModel()"><i class="fa fa-edit"></i> 编辑</button>
				<button class="layui-btn layui-btn-danger" onclick="deleteUserInfo()"><i class="fa fa-minus"></i> 删除</button>
			</div>
			<table id="userInfoTable"></table>
			<script type="text/html" id="switchTpl">
			  <!-- 这里的 checked 的状态只是演示 -->
			  <input type="checkbox" name="sex" value="{{d.id}}" lay-skin="switch" lay-text="女|男" lay-filter="sexDemo" {{ d.id == 10003 ? 'checked' : '' }}>
			</script>
			<div id="addUserModel">
			<form  class="layui-form layui-form-pane">
				<div class="layui-form-item">
					<label class="layui-form-label">用户名</label>
					<div class="layui-input-block">
						<input type="text" name="userName"  lay-verify="username" placeholder="请输入用户名"
							autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">密码</label>
					<div class="layui-input-block">
						<input type="text" name="userPwd" required lay-verify="password" placeholder="请输入密码"
							autocomplete="off" class="layui-input">
					</div>
				</div>
				
				<div class="layui-form-item" style="text-align: center;">
						<button class="layui-btn" lay-submit lay-filter="loginBtn">登录</button>
						<button type="reset" class="layui-btn layui-btn-primary" onclick="closeAddModel()">取消</button>
				</div>
			</form>
			</div>
		</body>
		<script src="../layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/userInfoManager.js" type="text/javascript" charset="utf-8"></script>
	</html>
	